<?php
$this->breadcrumbs=array(
	'Dakuns'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List DAkun','url'=>array('index')),
	array('label'=>'Create DAkun','url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('dakun-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>


<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->
<div id="bungkus">
<?php $this->widget('bootstrap.widgets.BootGridView',array(
	'id'=>'dakun-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		//'ID',
		array(
			'name'=>'THANG',
			'value'=>'$data->THANG',
		),
		//array(
			//'name'=>'KDJENDOK',
			//'value'=>'$data->jendok->NMJENDOK',
		//),
		array(
			'name'=>'KDSATKER',
			'value'=>'$data->satker->NMSATKER',
		),
		//array(
			//'name'=>'KDDEPT',
			//'value'=>'$data->dept->NMDEPT',
		//),
		//array(
			//'name'=>'KDUNIT',
			//'value'=>'$data->unit->NMUNIT',
		//),
		array(
			'name'=>'KDPROGRAM',
		//	'value'=>'$data->program->NMPROGRAM',
		),
		array(
			'name'=>'KDGIAT',
		//	'value'=>'$data->giat->NMGIAT',
		),
	/*	array(
			'name'=>'KDLOKASI',
			'value'=>'$data->lokasi->NMLOKASI',
		), */
		/* array(
			'name'=>'KDKABKOTA',
			'value'=>'$data->kabkota->NMKABKOTA',
		), */
		array(
			'name'=>'KDAKUN',
		//	'value'=>'$data->akun->NMAKUN',
		),
		array(
			'name'=>'KDOUTPUT',
			// 'value'=>'$data->output->NMOUTPUT',
		),
		//'KDDEKON',
		array(
			'name'=>'KDSOUTPUT',
		//	'value'=>'$data->KDSOUTPUT',
		),
		array(
			'name'=>'KDKMPNEN',
		//	'value'=>'$data->KDKMPNEN',
		),
		array(
			'name'=>'KDSKMPNEN',
			//'value'=>'$data->KDSKMPNEN',
		), 
		//'KDKPPN',
		//'KDBEBAN',
		//'KDJNSBAN',
		//'KDCTARIK',
		//'REGISTER',
		//'CARAHITUNG',
		//'PROSENPHLN',
	//	'PROSENRKP',
		// 'PROSENRMP',
		//'KPPNRKP',
		//'KPPNRMP',
	//	'KPPNPHLN',
		//'REGDAM',
		//'KDLUNCURAN',
		//'KDIB',
		//'_NullFlags',
		array(
			'class'=>'bootstrap.widgets.BootButtonColumn',
			'template'=>'{view}',
		),
		
	),
)); ?>
</div>